home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_teo_hint.cog < prev    next >
Text File  |  1999-11-15  |  9KB  |  283 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEO_Hint.cog
  4. #
  5. # Solves hints    
  6. #
  7. # [SXC]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.         message         startup
  15.         message         activate
  16.         message         entered
  17.         message         taken
  18.         
  19.         thing           player                          local
  20.  
  21.         thing           hint1
  22.         thing           hint2
  23.         thing           h2_doorblock                    # activate block in chamber 1
  24.         thing           hint4
  25.         thing           h4_waterkey                     # pickup key trigger
  26.         thing           hint6
  27.         sector          h6_gearsector                   # sector before gear_room
  28.         thing           hint8
  29.         sector          h8_elevsector                   # elevator in statlockroom
  30.         thing           hint10
  31.         sector          h10_centersector                # sector between mirrorlock and statlock
  32.         thing           hint12
  33.         sector          h12_mirsidesector               # sector to the side of the mirror and above
  34.         thing           hint14
  35.         sector          h14_snakesect0                  # first snake sector
  36.         thing           hint16
  37.         sector          h16_snakesect1
  38.         thing           hint18
  39.         sector          h18_snakesect2
  40.         thing           hint20
  41.         sector          h20_mirsideramp                 # ramp at side of mirror statue
  42.         thing           hint22
  43.         sector          h22_uponblock                   # sector just off trap block
  44.         thing           hint24
  45.         sector          h24_returndoor                  # door after the mirror room back to statlock
  46.         thing           hint26
  47.         sector          h26_fishsector                  # initial fishsector
  48.         thing           hint28
  49.         sector          h28_poolkey
  50.         thing           hint30
  51.         thing           h30_underwaterswitch 
  52.         thing           hint32
  53.         sector          h32_piersector
  54.         thing           hint34
  55.         thing           h34_mirror
  56.         thing           hint36
  57.         thing           h36_fishidol
  58.         thing           hint38
  59.         sector          h38_birdarea
  60.         thing           hint40
  61.         sector          h40_boomdoor
  62.         thing           hint42
  63.         sector          h42_climbsector
  64.         thing           hint44
  65.         sector          h44_chamber2
  66.         thing           hint46
  67.         thing           h46_chamber2idol
  68.         thing           chamber2idol
  69.         thing           hint48
  70.         sector          h48_theatre
  71.         thing           hint50
  72.         sector          h50_jagchamber
  73.         thing           hint52
  74.         thing           h52_jagidol
  75.         thing           hint54
  76.         sector          h54_idolsector
  77.         thing           hint56
  78.         sector          h56_exitsector
  79.         
  80. end
  81.  
  82.  
  83. # ========================================================================================
  84. code
  85.  
  86. startup:
  87.  
  88.     SetHintSolved(hint1);
  89.     player = GetLocalPlayerThing();
  90.     
  91. return;
  92.  
  93. # ========================================================================================
  94.  
  95. activate:
  96.  
  97.     if ((GetSenderRef() == h2_doorblock) && (GetHintSolved(hint2) == 0) && (GetSourceRef() == player))
  98.     {
  99.         SetHintSolved(hint2);
  100.         return;
  101.     }
  102.     
  103.     if ((GetSenderRef() == h30_underwaterswitch) && (GetHintSolved(hint30) == 0) && (GetSourceRef() == player))
  104.     {
  105.         SetHintSolved(hint30);
  106.         return;
  107.     }
  108.     
  109.     if ((GetSenderRef() == h34_mirror) && (GetHintSolved(hint34) == 0) && (GetSourceRef() == player))
  110.     {
  111.         SetHintSolved(hint34);
  112.         return;
  113.     }
  114.     
  115.     if ((GetSenderRef() == h36_fishidol) && (GetHintSolved(hint36) == 0) && (GetSourceRef() == player))
  116.     {
  117.         SetHintSolved(hint36);
  118.         return;
  119.     }
  120.     
  121.     if ((GetSenderRef() == h46_chamber2idol) && (GetHintSolved(hint46) == 0) && (GetSourceRef() == player))
  122.     {
  123.         SetHintSolved(hint46);
  124.         return;
  125.     }
  126.     
  127.     if ((GetSenderRef() == h52_jagidol) && (GetHintSolved(hint52) == 0) && (GetSourceRef() == player))
  128.     {
  129.         SetHintSolved(hint52);
  130.         return;
  131.     }
  132.     
  133. return;        
  134.         
  135.         
  136. # ========================================================================================
  137.  
  138. entered:
  139.         
  140.     if ((GetSenderRef() == h6_gearsector) && (GetHintSolved(hint6) == 0) && (GetSourceRef() == player))
  141.     {
  142.         SetHintSolved(hint6);
  143.         return;
  144.     }
  145.     
  146.     if ((GetSenderRef() == h8_elevsector) && (GetHintSolved(hint8) == 0) && (GetSourceRef() == player))
  147.     {
  148.         SetHintSolved(hint8);
  149.         return;
  150.     }
  151.     
  152.     if ((GetSenderRef() == h10_centersector) && (GetHintSolved(hint10) == 0) && (GetSourceRef() == player))
  153.     {
  154.         SetHintSolved(hint10);
  155.         return;
  156.     }
  157.     
  158.     if ((GetSenderRef() == h12_mirsidesector) && (GetHintSolved(hint12) == 0) && (GetSourceRef() == player))
  159.     {
  160.         SetHintSolved(hint12);
  161.         return;
  162.     }
  163.     
  164.     if ((GetSenderRef() == h14_snakesect0) && (GetHintSolved(hint14) == 0) && (GetSourceRef() == player))
  165.     {
  166.         SetHintSolved(hint14);
  167.         return;
  168.     }
  169.     
  170.     if ((GetSenderRef() == h16_snakesect1) && (GetHintSolved(hint16) == 0) && (GetSourceRef() == player))
  171.     {
  172.         SetHintSolved(hint16);
  173.         return;
  174.     }
  175.     
  176.     if ((GetSenderRef() == h18_snakesect2) && (GetHintSolved(hint18) == 0) && (GetSourceRef() == player))
  177.     {
  178.         SetHintSolved(hint18);
  179.         return;
  180.     }
  181.     
  182.     if ((GetSenderRef() == h20_mirsideramp) && (GetHintSolved(hint20) == 0) && (GetSourceRef() == player))
  183.     {
  184.         SetHintSolved(hint20);
  185.         return;
  186.     }
  187.     
  188.     if ((GetSenderRef() == h22_uponblock) && (GetHintSolved(hint22) == 0) && (GetSourceRef() == player))
  189.     {
  190.         SetHintSolved(hint22);
  191.         return;
  192.     }
  193.     
  194.     if ((GetSenderRef() == h24_returndoor) && (GetHintSolved(hint24) == 0) && (GetSourceRef() == player))
  195.     {
  196.         SetHintSolved(hint24);
  197.         return;
  198.     }
  199.     
  200.     if ((GetSenderRef() == h26_fishsector) && (GetHintSolved(hint26) == 0) && (GetSourceRef() == player))
  201.     {
  202.         SetHintSolved(hint26);
  203.         return;
  204.     }
  205.     
  206.     if ((GetSenderRef() == h28_poolkey) && (GetHintSolved(hint28) == 0) && (GetSourceRef() == player))
  207.     {
  208.         SetHintSolved(hint28);
  209.         return;
  210.     }
  211.     
  212.     if ((GetSenderRef() == h32_piersector) && (GetHintSolved(hint32) == 0) && (GetSourceRef() == player))
  213.     {
  214.         SetHintSolved(hint32);
  215.         return;
  216.     }
  217.     
  218.     if ((GetSenderRef() == h38_birdarea) && (GetHintSolved(hint38) == 0) && (GetSourceRef() == player))
  219.     {
  220.         SetHintSolved(hint38);
  221.         return;
  222.     }
  223.     
  224.     if ((GetSenderRef() == h40_boomdoor) && (GetHintSolved(hint40) == 0) && (GetSourceRef() == player))
  225.     {
  226.         SetHintSolved(hint40);
  227.         return;
  228.     }
  229.     
  230.     if ((GetSenderRef() == h42_climbsector) && (GetHintSolved(hint42) == 0) && (GetSourceRef() == player))
  231.     {
  232.         SetHintSolved(hint42);
  233.         return;
  234.     }
  235.     
  236.     if ((GetSenderRef() == h44_chamber2) && (GetHintSolved(hint42) == 0) && (GetSourceRef() == player))
  237.     {
  238.         SetHintSolved(hint44);
  239.         return;
  240.     }
  241.     
  242.     if ((GetSenderRef() == h48_theatre) && (GetHintSolved(hint48) == 0) && (GetSourceRef() == player))
  243.     {
  244.         SetHintSolved(hint48);
  245.         return;
  246.     }
  247.     
  248.     if ((GetSenderRef() == h50_jagchamber) && (GetHintSolved(hint50) == 0) && (GetSourceRef() == player))
  249.     {
  250.         SetHintSolved(hint50);
  251.         return;
  252.     }
  253.     
  254.     if ((GetSenderRef() == h54_idolsector) && (GetHintSolved(hint54) == 0) && (GetSourceRef() == player))
  255.     {
  256.         SetHintSolved(hint54);
  257.         return;
  258.     }
  259.     
  260.     if ((GetSenderRef() == h56_exitsector) && (GetHintSolved(hint56) == 0) && (GetSourceRef() == player))
  261.     {
  262.         SetHintSolved(hint56);
  263.         return;
  264.     }
  265.         
  266. return;        
  267.  
  268. # ========================================================================================
  269. taken:
  270.  
  271.     if ((GetSenderRef() == h4_waterkey) && (GetHintSolved(hint4) == 0))
  272.     {
  273.         SetHintSolved(hint4);
  274.         return;
  275.     }
  276.         
  277. return;
  278.  
  279. # ========================================================================================
  280.  
  281. end
  282.  
  283.